﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebSysCore;

namespace HSchSchedule.BackendPage
{
    public partial class NewsDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadData();
            }
        }

        private void LoadData()
        {
            int newsID = int.Parse(Request["NewsID"]);
            New enNew = DataBase.getEnNew(newsID);
            lblTitle.Text = enNew.Title;
            lblContent.Text = enNew.NewsContent;
        }
    }
}
